package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.system.api.domain.SysUser;
import com.sikaryofficial.system.api.model.SysUserReq;
import com.sikaryofficial.system.api.model.UserProfileReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author : qinjinyuan
 * @desc : User对象映射
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface SysUserMapping {
    SysUserMapping INSTANCE = Mappers.getMapper(SysUserMapping.class);

    /**
     * 实体映射resp
     *
     * @param sysUserReq
     * @return
     */
    SysUser coverToEntity(SysUserReq sysUserReq);

    SysUser coverReqToEntity(UserProfileReq userProfileReq);
}
